home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19950929-19951130
/
000121_news@columbia.edu_Mon Oct 16 15:09:20 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-12-25
|
2KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA07026
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Mon, 16 Oct 1995 11:09:27 -0400
Received: by apakabar.cc.columbia.edu id AA02084
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Mon, 16 Oct 1995 11:09:25 -0400
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc,comp.dcom.modems
Subject: Re: kermit: please don't drop DTR
Date: 16 Oct 1995 15:09:20 GMT
Organization: Columbia University
Lines: 36
Message-Id: <45tsj0$211@apakabar.cc.columbia.edu>
References: <45pc8d$r0i@agate.berkeley.edu>
Nntp-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:3854 comp.dcom.modems:113199
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <45pc8d$r0i@agate.berkeley.edu>,
Ramon F Herrera <herrera@canaima.ME.Berkeley.EDU> wrote:
: Is there any way to tell kermit NOT to drop DTR when the user quits?
:
: I am using kermit just to dial to an Internet Service Provider,
: and therefore after quitting, the phone call should not be dropped.
:
: After kermit ends, I grab the IP address from the kermit log and
: start the SLIP daemon.
:
: Later, when all Internet exchange is done, I need to tell the
: serial port to drop DTR so the modems hangs up.
:
: I guess that if the port is set up with the HUPCL parameter,
: what I really need is to ask kermit not to close the file (port).
:
: Should I look for this line, comment it out, and recompile kermit?:
:
: close("/dev/tty0");
:
: Or should I set the port to -HUPCL, run kermit, quit, and then change
: the setting to +HUPCL?
:
: Any other suggestions or comments?
:
Long question, short answer:
It is a fundamental property of UNIX that when a program exits, either
explicitly (_exit()) or implicitly, all of the files that is opened are
closed. UNIX does this even if the program doesn't.
One way to accomplish what you want to do is to have a superior process
open the port, pass its file descriptor to Kermit (see the documentation),
and then when Kermit exits the superior process still has it open.
- Frank